
Name "MegaShorter"
OutFile "MegaShort.exe"
InstallDir $PROGRAMFILES\MegaShort
RequestExecutionLevel admin
XPStyle on
Icon ../media/icon.ico
SetCompressor /SOLID lzma

;--------------------------------

Page license
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles

;--------------------------------

LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Russian.nlf"

LicenseData ..\LICENSE

;--------------------------------

Section "MegaShort"

  SetOutPath $INSTDIR
  File megashort.nsi
  WriteUninstaller $INSTDIR\uninstall.exe
  
SectionEnd

Section "Uninstall"
  Delete $INSTDIR\uninstall.exe
  Delete $INSTDIR\megashort.nsi
  RMDir $INSTDIR
SectionEnd

